const {reactive, effect} = require('@vue/reactivity');

const obj = reactive({text: 'hello world'});

effect(() => {
  console.log(obj.text);
});

setTimeout(() => {
  obj.text = 'abcd';
}, 1000);
